<!DOCTYPE html>
<html>

<head>
	<title>闲瓜市场 - 查看用户</title>
	<script src="http://libs.baidu.com/jquery/1.9.0/jquery.js"></script>
	<link rel="stylesheet" type="text/css" href="{{url_for('static',filename='templates/myinfo.css')}}" />
	<script src="{{url_for('static',filename='js/global.js')}}"></script>
	<script src="{{url_for('static',filename='js/userinfo.js')}}"></script>
</head>

<body onload="onLoad()">
	<nav class="nav">
		<div class="navHerf" id="toFrontPage"><a href="/">首页</a></div>
		<div class="navHerf" id="toLoginPage"><a href="/login">登录</a></div>
		<div class="navHerf" id="toRegPage"><a href="/register">注册</a></div>
		<div class="navHerf" id="toUploadPage"><a href="/upload_new">添加商品</a></div>
		<div class="navUser" id="curUser"><a href="/myinfo">未登录</a></div>
	</nav>
	<div class="main">
		<h1>公开信息</h1>
		<div id="info" class="block">
			<h2 class="title">基本信息</h2>
			<div id="infoDisplay" class="inblockInfo">
				<div id="avatar">
					<img id="avatarImg" src="static/img/default_avatar.jpg">
				</div>
				<div class="name">
					<span class="infoShow" id="infoName">{{info['name']}}</span>
				</div>
				<hr style="margin: 15px 0;">
				<div class="campus">
					<span class="fixedInfo">校区</span>
					<span class="infoShow">{{info['campus']}}</span>
				</div>
				<div class="tel">
					<span class="fixedInfo">电话</span>
					<span class="infoShow">{{info['tel']}}</span>
				</div>
				<div class="vx">
					<span class="fixedInfo">微信号</span>
					<span class="infoShow">{{info['vx']}}</span>
				</div>
				<div class="qq">
					<span class="fixedInfo">QQ号</span>
					<span class="infoShow">{{info['qq']}}</span>
				</div>
				<div class="email">
					<span class="fixedInfo">电子邮箱</span>
					<span class="infoShow">{{info['email']}}</span>
				</div>
			</div>
		</div>

		<div id="uplaod" class="block">
			<h2 class="title">TA发布的</h2>
			{% if up|length == 0 %}
			<p>还没有发布商品</p>
			{% endif %}
			<div class="goodsUl">
				<ul>
					{% for u in up %}
					<li class="goodsItem" onclick="window.open('item_{{u['gid']}}')">
						<div>
							<div class="goodsName">{{u['gName']}}</div>
							<div class="goodsPrice">￥{{u['gPrice']}}</div>
							<div class="goodsUpTime">发布时间：{{u['time']}}</div>
						</div>
					</li>
					{% endfor %}
				</ul>
			</div>
		</div>
	</div>
</body>

</html>